package com.lab.system.service;

import com.lab.common.core.domain.model.LoginUser;
import com.lab.system.domain.Reservations;

import java.util.List;


/**
 * 实验预约Service接口
 *
 * @author cf
 * @date 2025-02-10
 */
public interface IReservationsService {
    /**
     * 查询实验预约
     *
     * @param id 实验预约主键
     * @return 实验预约
     */
    public Reservations selectReservationsById(Long id);

    /**
     * 查询实验预约列表
     *
     * @param reservations 实验预约
     * @return 实验预约集合
     */
    public List<Reservations> selectReservationsList(Reservations reservations, LoginUser loginUser);

    /**
     * 新增实验预约
     *
     * @param reservations 实验预约
     * @return 结果
     */
    public int insertReservations(Reservations reservations);

    /**
     * 修改实验预约
     *
     * @param reservations 实验预约
     * @return 结果
     */
    public int updateReservations(Reservations reservations);

    /**
     * 批量删除实验预约
     *
     * @param ids 需要删除的实验预约主键集合
     * @return 结果
     */
    public int deleteReservationsByIds(Long[] ids);

    /**
     * 删除实验预约信息
     *
     * @param id 实验预约主键
     * @return 结果
     */
    public int deleteReservationsById(Long id);

    /**
     * 查询当前登陆用户的预约记录
     * @param reservations
     * @param userId
     * @return
     */
    List<Reservations> selectReservationsListByUser(Reservations reservations, Long userId);

    List<Reservations> selectReservationsByIds(List<Long> reservationIds);

    List<Reservations> getAllAudit(Integer code);
}
